package com.steak.desgin.flyweight.hot;


public class HotSpotDataClient {
    public static void main(String[] args) throws InterruptedException {
        long start = System.currentTimeMillis();
        String key = "王思聪当舔狗";
        for (int i = 0 ; i < 10000 ; i++){
            R hotspotData = HotspotDataFactory.getHotspotDataByKey(key);
            System.out.println(hotspotData);
        }
        long  time = System.currentTimeMillis() - start;
        System.out.println("花费时间:  "+time);
    }
}
